package com.jiangyg.mall.coupon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 类描述：秒杀活动商品关联
 *
 * @author jiangyg
 * @email email@jiangyg.com
 * @date 2021-10-18 21:33:05
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
@TableName("mc_seckill_sku")
public class SeckillSku implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @TableField("id")
    private Long id;

    /**
     * 活动场次id
     */
    @TableField("session_id")
    private Long sessionId;

    /**
     * 商品id
     */
    @TableField("sku_id")
    private Long skuId;

    /**
     * 秒杀价格
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 秒杀总量
     */
    @TableField("count")
    private BigDecimal count;

    /**
     * 每人限购数量
     */
    @TableField("limit")
    private BigDecimal limit;

    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;

}
